package com.liyiwei.springext.importAnnotation.bean;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Data
@Slf4j
public class AlipayBean implements PayService{

    @Override
    public Boolean sendPayRequest(String alipayParam){
        log.info("支付请求参数：" + alipayParam);
        try{
            System.out.println("我用支付宝支付了10元钱");
            log.info("支付完成");
            return true;
        }catch (Exception e){
            log.error("支付发生错误");
            return false;
        }
    }
}
